import { createApp } from 'vue'
import './style.scss'
import App from './App.vue'

// 引入Element-Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import router from './router'

import { createPinia } from 'pinia'


// 国际化 需要安装element-plus/dist/locale/zh-cn.mjs
// 设置好之后，日期选择器可以显示中文
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'


const pinia = createPinia()

createApp(App)
    .use(router)
    .use(pinia)
    // .use(ElementPlus)
    .use(ElementPlus, {
        locale: zhCn,
    })
    .mount('#app')
